﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MenuItem.ascx.cs" Inherits="WebUI.UserControls.MenuItem" %>
<link type="text/css" rel="stylesheet" href="../Styles/style.css">
<div id="tbleft">
    <asp:Repeater ID="FirstLevelMenuRepeater" runat="server" OnItemDataBound="FirstLevelMenuRepeater_ItemDataBound">
        <ItemTemplate>
            <div class="tbleft">
                <div class="tbleft">
                    <h1>
                        <asp:HyperLink ID="SecondLevelMenu" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "regionName") %>'
                            NavigateUrl='<%# String.Format("../ResultDetailByRegion.aspx?ID={0}", Eval("REGIONID").ToString()) %>'
                            ToolTip='<%# DataBinder.Eval(Container.DataItem, "regionName") %>'>
                        </asp:HyperLink>
                    </h1>
                </div>
                <asp:Repeater ID="SecondLevelMenuRepeater" runat="server">
                    <ItemTemplate>
                        <ul class="m_item">
                            <li class="icon m_focus">
                                <asp:HyperLink ID="SecondLevelMenu" runat="server" NavigateUrl='<%# String.Format("../ResultDetailByProvince.aspx?ID={0}", Eval("provinceID").ToString()) %>'

                                    Text='<%# DataBinder.Eval(Container.DataItem, "princeName") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "princeName") %>'>
                                </asp:HyperLink>
                            </li>
                        </ul>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</div>
